package com.jg.poiet;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import java.io.*;

/**
 * 对原生poi的扩展
 */
public class NiceHSSFWorkbook extends AbstractNiceWorkbook{
    /**
     * 新建空白工作簿
     */
    public NiceHSSFWorkbook() {
        super(new HSSFWorkbook());
    }

    /**
     * 通过流的形式打开一个工作簿
     * @param in    excel流
     * @throws IOException
     */
    public NiceHSSFWorkbook(InputStream in) throws IOException {
        super(new HSSFWorkbook(in));
        buildAllCellRangeAddress();
    }
}
